<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	18 March 2010
// version :	18 March 2010

/**
 * Indicates the types of JOIN keywords that the Repository can fulfill in queries. Support levels are:
 *  none: The repository cannot fulfill any queries that include any JOIN clauses.
 *  inneronly: The repository can fulfill queries that include an INNER JOIN clause, but cannot fulfill queries that include other types of JOIN clauses.
 *  innerandouter: The repository can fulfill queries that include any type of JOIN clause defined by the CMIS query grammar.
 */
class Cmis_Repository_Capability_Join extends Cmis_Repository_Capability_Abstract
{
	const VALUE_NONE = 'none';
	const VALUE_INNERONLY = 'inneronly';
	const VALUE_INNERANDOUTER = 'innerandouter';

	protected function _setValue($value)
	{
		$this->_value = trim($value);
		switch ($this->_value)
		{
			case self::VALUE_INNERONLY :
			case self::VALUE_INNERANDOUTER :
			case self::VALUE_NONE :
				break;
			default:
				$this->_value = self::VALUE_NONE;
		}
	}
}

# EOF
